package com.zhouyu.service;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @author leimingchao
 * create 2025-05-04 10:30
 */
@Component
public class ProductService /*implements DisposableBean*/ {

	//@Override
	//public void destroy() throws Exception {
	//	System.out.println("ProductService------>destroy");
	//}

	public void test() {
		System.out.println("test");
	}


	@PreDestroy
	public void a() {
		System.out.println("销毁a");
	}

	public void b() {
		System.out.println("销毁b");
	}
}
